//
//  MoneyController.m
//  7.13苏宁框架
//
//  Created by mini on 15/7/18.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "MoneyController.h"
#import "MBProgressHUD.h"
#import "MBProgressHUD+MJ.h"

@interface MoneyController ()

@end

@implementation MoneyController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)returnClick {
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)closeClick {
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)moreClick {
    if (self.backGround.hidden==YES) {
        self.backGround.hidden = NO;
        self.goHome.hidden = NO;
        self.refreshView.hidden = NO;
        self.shareView.hidden = NO;
    }
    else
    {
        self.backGround.hidden = YES;
        self.goHome.hidden = YES;
        self.refreshView.hidden = YES;
        self.shareView.hidden = YES;
    }
}

- (IBAction)returnHome {
    self.backGround.hidden = YES;
    self.goHome.hidden = YES;
    self.refreshView.hidden = YES;
    self.shareView.hidden = YES;
   [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)refreshClick {
    [MBProgressHUD showMessage:@""];
    
    [self performSelector:@selector(end) withObject:nil afterDelay:1.5];
}

-(void)end
{
    [MBProgressHUD hideHUD];
    [MBProgressHUD showSuccess:@"刷新成功"];
    self.backGround.hidden = YES;
    self.goHome.hidden = YES;
    self.refreshView.hidden = YES;
    self.shareView.hidden = YES;
    
}

@end
